﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="InicioHistory.aspx.cs" Inherits="ViewLayer.Pages.Historys.InicioHistory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="scpmAssociate" runat="server">
    </asp:ScriptManager> 
    <asp:Panel ID="pnlHistory" runat="server">
        <h2>Bem-vindo a tela inicial contendo todos os recursos das Hist&oacute;rias</h2>
        <br />
        <br />
        <asp:Table ID="tblRecursos" runat="server" GridLines="Both">
            <asp:TableRow>
                <asp:TableCell>
                    <asp:Label ID="lblCadastro" runat="server" Text="Cadastro de Hist&oacute;rias: "></asp:Label>
                </asp:TableCell>
                <asp:TableCell>
                    <asp:LinkButton ID="lnkbCadastro" runat="server" OnClick="lnkbCadastro_Click">Cadastrar</asp:LinkButton>
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell>
                    <asp:Label ID="lblImportEpics" runat="server" Text="Importa&ccedil;&atilde;o de Hisst&oacute;rias: "></asp:Label>
                </asp:TableCell>
                <asp:TableCell>
                    <asp:LinkButton ID="lnkbImportHistory" runat="server" OnClick="lnkbImportHistory_Click">Importar Hist&oacute;rias</asp:LinkButton>
                </asp:TableCell>
            </asp:TableRow>
        </asp:Table>
        <br />
        <asp:UpdatePanel ID="updtAssociateReleaseEpic" runat="server">
            <ContentTemplate>
                <h2>Associação de Hist&oacute;ia a Sprint e Epic</h2>

                <asp:Label ID="lblSprint" runat="server" Text="Sprint: "></asp:Label>
                <asp:DropDownList ID="ddlSprint" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSprint_SelectedIndexChanged">
                </asp:DropDownList>
                                <br />
                <br />
                <asp:GridView ID="grdHistorys" runat="server" BackColor="White" BorderColor="#999999"
                    BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical"  AutoGenerateColumns="False"
                    OnRowDataBound="grdHistorys_RowDataBound" AllowPaging="True" PageSize="5" OnPageIndexChanging="grdHistorys_PageIndexChanging"
                    OnRowCommand="grdHistorys_RowCommand">
                    <AlternatingRowStyle BackColor="#DCDCDC" />
                    <Columns>
                        <asp:TemplateField HeaderText="Nome">
                            <ItemTemplate>
                                <asp:Label ID="lblNomeHistory" runat="server" Text=""></asp:Label>
                                <asp:TextBox ID="txtNomeHistory" runat="server" Visible="false"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Descri&amp;ccedil;&amp;atilde;o">
                            <ItemTemplate>
                                <asp:Label ID="lblDescHistory" runat="server" Text=""></asp:Label>
                                <asp:TextBox ID="txtDescHistory" runat="server" Visible="false"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Melhor Caso">
                            <ItemTemplate>
                                <asp:Label ID="lblMelhorCaso" runat="server" Text=""></asp:Label>
                                <asp:TextBox ID="txtMelhorCaso" runat="server" Visible="false"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Caso M&amp;eacute;dio">
                            <ItemTemplate>
                                <asp:Label ID="lblCasoMedio" runat="server" Text=""></asp:Label>
                                <asp:TextBox ID="txtCasoMedio" runat="server" Visible="false"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Pior Caso">
                            <ItemTemplate>
                                <asp:Label ID="lblPiorCaso" runat="server" Text=""></asp:Label>
                                <asp:TextBox ID="txtPiorCaso" runat="server" Visible="false"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Sprint Associado">
                            <ItemTemplate>
                                <asp:Label ID="lblSprintAssociate" runat="server" Text=""></asp:Label>
                                <asp:DropDownList ID="ddlSprintToAssociate" runat="server" Visible="false">
                                </asp:DropDownList>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Epic Associado">
                            <ItemTemplate>
                                <asp:Label ID="lblEpicAssociate" runat="server" Text=""></asp:Label>
                                <asp:DropDownList ID="ddlEpicToAssociate" runat="server" Visible="false">
                                </asp:DropDownList>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="">
                            <ItemTemplate>
                                <asp:Button ID="btnAtualizar" runat="server" Text="Editar" CommandName="Editar" />
                                <asp:Button ID="btnSalvar" runat="server" Text="Salvar" CommandName="Salvar" Visible="false" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>                    
                    <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#0000A9" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#000065" />
                </asp:GridView>
                <br />
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
</asp:Content>